package com.bto.solar.work.dto.lease;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 王小波
 * @description:
 * @date 2023/8/4 9:23
 */
@NoArgsConstructor
@Data
public class ContractFileRes {
    @JsonProperty("type")
    private String type;
    @JsonProperty("message")
    private String message;
    @JsonProperty("total")
    private Object total;
    @JsonProperty("pages")
    private Object pages;
    @JsonProperty("contract")
    private List<Contract> contract;

    @NoArgsConstructor
    @Data
    public static class Contract {
        @JsonProperty("businessKey")
        private String businessKey;
        @JsonProperty("fileMessage")
        private List<FileMessage> fileMessage;

        @NoArgsConstructor
        @Data
        public static class FileMessage {
            @JsonProperty("documentName")
            private String documentName;
            @JsonProperty("url")
            private String url;
            @JsonProperty("usageCategory")
            private String usageCategory;
        }
    }
}
